﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MvcApplication2.Models.Score>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Score
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Статистика по годам</h2>

    <table>
        <tr>
            
            <th>
                Год
            </th>
            <th>
                Балл
            </th>
            
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Редактировать", "EditScore", new { id = item.id })%> |
                <%: Html.ActionLink("Детали", "DetailsScore", new { id = item.id })%> |
                <!--<%: Html.ActionLink("Delete", "DeleteScore", new { id = item.id })%>-->
            </td>
            
            <td>
                <%: item.year %>
            </td>
            <td>
                <%: item.point %>
            </td>
            
        </tr>
    
    <% } %>

    </table>

   
</asp:Content>

